﻿<KCtl:BasePhoneApplicationPage 
    xmlns:KCtl="clr-namespace:Kiva7.Controls"
    x:Class="Kiva7.Pages.AboutPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape"  Orientation="Portrait"
    shell:SystemTray.IsVisible="True" Loaded="PhoneApplicationPageLoaded">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <!--Pivot Control-->
        <KCtl:OrientedPivot Title="About">
            <!--Pivot item one-->
            <controls:PivotItem Header="Kiva">
                <StackPanel>
                    <Button Click="OpenKivaClick" Height="210" VerticalAlignment="Top">
                        <Image Name="KivaLogo" Source="/Kiva7;component/Images/KivaLogo.png" />
                    </Button>
                    <ListBox x:Name="lbxStatistics" Margin="0,0,-12,0" ItemsSource="{Binding Data}" 
              Background="{StaticResource KivaBackgroundBrush}"
             HorizontalContentAlignment="Stretch" >
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock Text="{Binding Description}" Width="150"
                               Style="{StaticResource KivaTextSmallStyle}" TextAlignment="Right" />
                                    <TextBlock Text="{Binding Title}" 
                               Style="{StaticResource KivaTextNormalStyle}" />

                                </StackPanel>
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>
                    </StackPanel>
            </controls:PivotItem>

            <!--Pivot item two-->
            <controls:PivotItem Header="Avanade">
                <Grid Background="White">
                    <Button Click="OpenAvanadeClick" Margin="10,10,10,366" Height="231" BorderThickness="10" BorderBrush="#FFFF5800">
                        <TextBlock Text="We connect insight, innovation and expertise in Microsoft technologies to help customers realize results." 
                                   Foreground="#FFFF5800" FontFamily="Arial" TextWrapping="Wrap" Height="159" />
                        
                    </Button>
                    <Image Source="/Kiva7;component/Images/AvanadeLogo.png" Margin="9,495,228,16" Height="96" Width="219" />
                    <Image Source="/Kiva7;component/Images/AvanadeHeritageLine.jpg" Margin="269,541,6,26" Width="181" Height="40" />
                    <TextBlock Height="30" HorizontalAlignment="Left" Margin="28,258,0,0" Name="textBlock2" 
                               Foreground="#FFFF5800" 
                               Text="" VerticalAlignment="Top" FontFamily="Arial" />
                </Grid>
            </controls:PivotItem>
            <controls:PivotItem Header="{Binding Path=L.Support, Source={StaticResource L}}">
                <StackPanel>
                    <TextBlock Text="{Binding Path=L.ForSupportYouCanContact, Source={StaticResource L}}"
                               TextWrapping="Wrap" Style="{StaticResource KivaTextNormalStyle}"
                               Margin="12,0,0,12"/>
                    <TextBlock Text="Daan Jonkers at Kiva7@live.com"
                               TextWrapping="Wrap" Style="{StaticResource KivaTextNormalStyle}"
                               Margin="12,0,0,12"/>

                    <Button Content="{Binding Path=L.SendAnEmail, Source={StaticResource L}}" Click="SendSupportClick" 
                            Style="{StaticResource KivaButtonStyle}"></Button>

                    <TextBlock Text="© 2011 Avanade Inc. All Rights Reserved. The Avanade name and logo are registered trademarks in the US and other countries.  "
                               TextWrapping="Wrap" Style="{StaticResource KivaTextNormalStyle}"
                               Margin="12,36,0,12"/>

                    <TextBlock Text="Kiva. All Rights Reserved. Kiva is a U.S. 501(c)3 non-profit organization."
                               TextWrapping="Wrap" Style="{StaticResource KivaTextNormalStyle}"
                               Margin="12,18,0,12"/>

                    <TextBlock Text="This application is not owned or operated by Kiva."
                               TextWrapping="Wrap" Style="{StaticResource KivaTextNormalStyle}"
                               Margin="12,18,0,12"/>

                    <TextBlock Text="The application license can be found here: kiva7.codeplex.com/license."
                               TextWrapping="Wrap" Style="{StaticResource KivaTextNormalStyle}"
                               Margin="12,18,0,12"/>

                </StackPanel>

            </controls:PivotItem>

        </KCtl:OrientedPivot>
    </Grid>

</KCtl:BasePhoneApplicationPage>